﻿using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using SuperSocket;
using SuperSocket.Channel;
using SuperSocket.Server;

namespace Demo005
{
    public class ModbusAppSession:AppSession
    {
        public ModbusAppSession() : base()
        {
            
        }
        protected async override ValueTask OnSessionClosedAsync(CloseEventArgs e)
        {
             
            Logger.LogInformation($"{this.SessionID.ToString()} {e.Reason}");
        }

        protected  async override ValueTask OnSessionConnectedAsync()
        { 
            Logger.LogInformation($" XXXXX connected ");
        }
    }
}